package org.jetnuke.dao;

import java.util.List;

import org.jetnuke.entities.Banner;

public interface BannerDAO {

	List selectAllActiveOrderTypeBID()throws Exception;


	List selectAllInactiveOrderTypeBID()throws Exception;


	void deleteByID(int bid)throws Exception;
	Banner retrieveByID(int bid)throws Exception;
	void update(Banner bn)throws Exception;
	int addNew(Banner bn)throws Exception;
	List selectByCID(int cid)throws Exception;
	void incClicks(int bid)throws Exception;

	int countActiveByType(int i)throws Exception;

	List selectActiveByTypeOffset(int i, int bannum)throws Exception;

}
